package chai.ning.immutable;

public class DecimalTest {

	public static void main(String[] args) {
		
		// Decimal d = new Decimal( 100L ); // The constructor Decimal(long) is not visible
		
		Decimal d = Decimal.valueOf( -100L );
		System.out.println( d );
		
		Decimal e = Decimal.valueOf( -100L );
		System.out.println( e );
		
		System.out.println( d == e ); // true
		System.out.println( d.equals( e ) ); // true

	}

}
